# -*- coding: utf-8 -*-
# @Time : 2023/11/13 18:37
# @Author : yuancheng
# @File : 冒泡排序.py.py
pop_list=[12,83,63,54,28,99]
count=len(pop_list)
print('没排序之前：',pop_list)

for i in range(count-1):
    for j in range(count-i-1):
        if pop_list[j]>pop_list[j+1]:
           pop_list[j],pop_list[j+1]=pop_list[j+1],pop_list[j]
print('排序后：',pop_list)

